package cn.zysheep.feign.clients;


import cn.zysheep.feign.clients.callback.UserClientCallBack;
import cn.zysheep.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @version v1.0
 * @Author: lyw
 * @Date: 2021/8/13
 */
@FeignClient(value = "user-service",fallback = UserClientCallBack.class)
public interface UserClient {

    @GetMapping("/user/{id}")
    public User queryById(@PathVariable("id") Long id);
}
